package com.jyhs.maven.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu {

    private Long id;
    @Length(max = 10, message = "标题长度不能超过10个字符")
    private String title;
    @Length(max = 20, message = "图标长度不能超过20个字符")
    private String icon;
    @NotEmpty(message = "跳转页面不能为空")
    private String href;
    @NotEmpty(message = "打开方式不能为空")
    private String target;
    private Long pid;


}
